/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dataModel.process;

/**
 *
 * @author Bruna
 */
public class Event extends Element{

    private int type;
    private boolean isAttached;
    private int isAttachedTo;
    private boolean leadsToEnd;

    public Event(int id, String label, Lane lane, Pool pool, int type) {
        super(id, label, lane, pool);
        this.type = type;
        leadsToEnd = false;
        isAttached = false;
    }

    public boolean isLeadsToEnd() {
        return leadsToEnd;
    }

    public void setLeadsToEnd(boolean leadsToEnd) {
        this.leadsToEnd = leadsToEnd;
    }

    public boolean isAttached() {
        return isAttached;
    }

    public void setAttached(boolean isAttached) {
        this.isAttached = isAttached;
    }

    public int getIsAttachedTo() {
        return isAttachedTo;
    }

    public void setIsAttachedTo(int isAttachedTo) {
        this.isAttachedTo = isAttachedTo;
    }

    public int getType() {
        return type;
    }
}
